package com.allen.imsystem.id;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.springframework.stereotype.Component;

/**
 * @ClassName ChatIdGenerator
 * @Description
 * @Version 1.0
 */
@Component
public class ChatIdGenerator implements IdentifierGenerator {

    @Override
    public Number nextId(Object entity) {
        return SnowFlakeUtil.getNextSnowFlakeId();
    }
}
